* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #1c1f2f;
}

.container {
    /* 制作倒影 */
    -webkit-box-reflect: below 5px
    -webkit-linear-gradient(transparent 10%, rgba(0, 0, 0, 0.5));
}

/* 制作一个半圆 */
.loader {
    position: relative;
    width: 200px;
    height: 200px;
    border: 20px solid transparent;
    border-bottom-color: #06c8f0;
    border-right-color: #06c8f0;
    border-radius: 50%;
    transform: rotate(45deg);
    /* ease-in-out：两边慢，中间快 */
    animation: move 4s ease-in-out infinite alternate;
}

.ball {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: move-reverse 4s ease-in-out infinite alternate;
}

/* 制作白色小球 */
.ball::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
}

/* 定义两个动画 */
@keyframes move {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(90deg);
    }
}
@keyframes move-reverse {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(-180deg);
    }
}
